package com.example.gss.Service;

import com.example.gss.entity.Competition;

import java.util.Date;
import java.util.List;

/**
 * 学科竞赛服务接口
 */
public interface CompetitionService {

    Competition save(Competition competition);

    Competition findById(String id);

    List<Competition> findAll();

    List<Competition> findByStudentId(String studentId);

    List<Competition> findByDateRange(Date startDate, Date endDate);

    Competition update(String id, Competition competition);

    void delete(String id);

    Double calculateTotalScore(String studentId);
}